package com.huahua.api.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.huahua.api.entity.pojo.ApiNovelBook;
import com.huahua.api.entity.vo.novel.ApiBookContentVo;
import com.huahua.api.entity.vo.novel.ApiBookVo;

/**
 * @author LoveHuahua
 * @date 2021年09月08日 9:55
 * @description believe in yourself
 */
public interface ApiNovelBookService extends IService<ApiNovelBook> {


    ApiBookVo getBookDetail(int bookId);

    /**
     * @param bookId 书籍id
     * @param itemId 章节id
     * @return
     */
    ApiBookContentVo getBookItemDetail(int bookId, int itemId);

    /**
     * 搜索书籍
     * @param searchKey 关键字
     * @param page
     * @param size
     * @return
     */
    Page<ApiNovelBook> searchBook(String searchKey, Integer page, Integer size);
}
